<?php

namespace App\Http\Controllers;

use App\Repositories\CombosRepository;
use Illuminate\Http\Request;

class ComboController extends Controller
{
    protected $combosRepository;
    public function __construct()
    {
      $this->combosRepository=new CombosRepository();
    }

    public function index(){
      $combos=$this->combosRepository->getList();
      return view('web.combo.index',compact('combos'));
    }
    public function detail($id){
        $combo=$this->combosRepository->getDetail($id);

        return view('web.combo.detail',compact('combo'));
    }




}
